package com.quanyan.assets.entity;

import com.quanyan.common.Plugin.Page;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbAccumulateRuleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbAccumulateRuleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeIsNull() {
            addCriterion("business_code is null");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeIsNotNull() {
            addCriterion("business_code is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeEqualTo(String value) {
            addCriterion("business_code =", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeNotEqualTo(String value) {
            addCriterion("business_code <>", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeGreaterThan(String value) {
            addCriterion("business_code >", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeGreaterThanOrEqualTo(String value) {
            addCriterion("business_code >=", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeLessThan(String value) {
            addCriterion("business_code <", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeLessThanOrEqualTo(String value) {
            addCriterion("business_code <=", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeLike(String value) {
            addCriterion("business_code like", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeNotLike(String value) {
            addCriterion("business_code not like", value, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeIn(List<String> values) {
            addCriterion("business_code in", values, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeNotIn(List<String> values) {
            addCriterion("business_code not in", values, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeBetween(String value1, String value2) {
            addCriterion("business_code between", value1, value2, "businessCode");
            return (Criteria) this;
        }

        public Criteria andBusinessCodeNotBetween(String value1, String value2) {
            addCriterion("business_code not between", value1, value2, "businessCode");
            return (Criteria) this;
        }

        public Criteria andPKeyIsNull() {
            addCriterion("p_key is null");
            return (Criteria) this;
        }

        public Criteria andPKeyIsNotNull() {
            addCriterion("p_key is not null");
            return (Criteria) this;
        }

        public Criteria andPKeyEqualTo(String value) {
            addCriterion("p_key =", value, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyNotEqualTo(String value) {
            addCriterion("p_key <>", value, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyGreaterThan(String value) {
            addCriterion("p_key >", value, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyGreaterThanOrEqualTo(String value) {
            addCriterion("p_key >=", value, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyLessThan(String value) {
            addCriterion("p_key <", value, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyLessThanOrEqualTo(String value) {
            addCriterion("p_key <=", value, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyLike(String value) {
            addCriterion("p_key like", value, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyNotLike(String value) {
            addCriterion("p_key not like", value, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyIn(List<String> values) {
            addCriterion("p_key in", values, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyNotIn(List<String> values) {
            addCriterion("p_key not in", values, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyBetween(String value1, String value2) {
            addCriterion("p_key between", value1, value2, "pKey");
            return (Criteria) this;
        }

        public Criteria andPKeyNotBetween(String value1, String value2) {
            addCriterion("p_key not between", value1, value2, "pKey");
            return (Criteria) this;
        }

        public Criteria andPDescribeIsNull() {
            addCriterion("p_describe is null");
            return (Criteria) this;
        }

        public Criteria andPDescribeIsNotNull() {
            addCriterion("p_describe is not null");
            return (Criteria) this;
        }

        public Criteria andPDescribeEqualTo(String value) {
            addCriterion("p_describe =", value, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeNotEqualTo(String value) {
            addCriterion("p_describe <>", value, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeGreaterThan(String value) {
            addCriterion("p_describe >", value, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeGreaterThanOrEqualTo(String value) {
            addCriterion("p_describe >=", value, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeLessThan(String value) {
            addCriterion("p_describe <", value, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeLessThanOrEqualTo(String value) {
            addCriterion("p_describe <=", value, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeLike(String value) {
            addCriterion("p_describe like", value, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeNotLike(String value) {
            addCriterion("p_describe not like", value, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeIn(List<String> values) {
            addCriterion("p_describe in", values, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeNotIn(List<String> values) {
            addCriterion("p_describe not in", values, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeBetween(String value1, String value2) {
            addCriterion("p_describe between", value1, value2, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andPDescribeNotBetween(String value1, String value2) {
            addCriterion("p_describe not between", value1, value2, "pDescribe");
            return (Criteria) this;
        }

        public Criteria andMaxUseableIsNull() {
            addCriterion("max_useable is null");
            return (Criteria) this;
        }

        public Criteria andMaxUseableIsNotNull() {
            addCriterion("max_useable is not null");
            return (Criteria) this;
        }

        public Criteria andMaxUseableEqualTo(Long value) {
            addCriterion("max_useable =", value, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andMaxUseableNotEqualTo(Long value) {
            addCriterion("max_useable <>", value, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andMaxUseableGreaterThan(Long value) {
            addCriterion("max_useable >", value, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andMaxUseableGreaterThanOrEqualTo(Long value) {
            addCriterion("max_useable >=", value, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andMaxUseableLessThan(Long value) {
            addCriterion("max_useable <", value, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andMaxUseableLessThanOrEqualTo(Long value) {
            addCriterion("max_useable <=", value, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andMaxUseableIn(List<Long> values) {
            addCriterion("max_useable in", values, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andMaxUseableNotIn(List<Long> values) {
            addCriterion("max_useable not in", values, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andMaxUseableBetween(Long value1, Long value2) {
            addCriterion("max_useable between", value1, value2, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andMaxUseableNotBetween(Long value1, Long value2) {
            addCriterion("max_useable not between", value1, value2, "maxUseable");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleIsNull() {
            addCriterion("accumulate_rule is null");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleIsNotNull() {
            addCriterion("accumulate_rule is not null");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleEqualTo(String value) {
            addCriterion("accumulate_rule =", value, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleNotEqualTo(String value) {
            addCriterion("accumulate_rule <>", value, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleGreaterThan(String value) {
            addCriterion("accumulate_rule >", value, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleGreaterThanOrEqualTo(String value) {
            addCriterion("accumulate_rule >=", value, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleLessThan(String value) {
            addCriterion("accumulate_rule <", value, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleLessThanOrEqualTo(String value) {
            addCriterion("accumulate_rule <=", value, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleLike(String value) {
            addCriterion("accumulate_rule like", value, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleNotLike(String value) {
            addCriterion("accumulate_rule not like", value, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleIn(List<String> values) {
            addCriterion("accumulate_rule in", values, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleNotIn(List<String> values) {
            addCriterion("accumulate_rule not in", values, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleBetween(String value1, String value2) {
            addCriterion("accumulate_rule between", value1, value2, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andAccumulateRuleNotBetween(String value1, String value2) {
            addCriterion("accumulate_rule not between", value1, value2, "accumulateRule");
            return (Criteria) this;
        }

        public Criteria andRuleTypeIsNull() {
            addCriterion("rule_type is null");
            return (Criteria) this;
        }

        public Criteria andRuleTypeIsNotNull() {
            addCriterion("rule_type is not null");
            return (Criteria) this;
        }

        public Criteria andRuleTypeEqualTo(Byte value) {
            addCriterion("rule_type =", value, "ruleType");
            return (Criteria) this;
        }

        public Criteria andRuleTypeNotEqualTo(Byte value) {
            addCriterion("rule_type <>", value, "ruleType");
            return (Criteria) this;
        }

        public Criteria andRuleTypeGreaterThan(Byte value) {
            addCriterion("rule_type >", value, "ruleType");
            return (Criteria) this;
        }

        public Criteria andRuleTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("rule_type >=", value, "ruleType");
            return (Criteria) this;
        }

        public Criteria andRuleTypeLessThan(Byte value) {
            addCriterion("rule_type <", value, "ruleType");
            return (Criteria) this;
        }

        public Criteria andRuleTypeLessThanOrEqualTo(Byte value) {
            addCriterion("rule_type <=", value, "ruleType");
            return (Criteria) this;
        }

        public Criteria andRuleTypeIn(List<Byte> values) {
            addCriterion("rule_type in", values, "ruleType");
            return (Criteria) this;
        }

        public Criteria andRuleTypeNotIn(List<Byte> values) {
            addCriterion("rule_type not in", values, "ruleType");
            return (Criteria) this;
        }

        public Criteria andRuleTypeBetween(Byte value1, Byte value2) {
            addCriterion("rule_type between", value1, value2, "ruleType");
            return (Criteria) this;
        }

        public Criteria andRuleTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("rule_type not between", value1, value2, "ruleType");
            return (Criteria) this;
        }

        public Criteria andOpTypeIsNull() {
            addCriterion("op_type is null");
            return (Criteria) this;
        }

        public Criteria andOpTypeIsNotNull() {
            addCriterion("op_type is not null");
            return (Criteria) this;
        }

        public Criteria andOpTypeEqualTo(Byte value) {
            addCriterion("op_type =", value, "opType");
            return (Criteria) this;
        }

        public Criteria andOpTypeNotEqualTo(Byte value) {
            addCriterion("op_type <>", value, "opType");
            return (Criteria) this;
        }

        public Criteria andOpTypeGreaterThan(Byte value) {
            addCriterion("op_type >", value, "opType");
            return (Criteria) this;
        }

        public Criteria andOpTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("op_type >=", value, "opType");
            return (Criteria) this;
        }

        public Criteria andOpTypeLessThan(Byte value) {
            addCriterion("op_type <", value, "opType");
            return (Criteria) this;
        }

        public Criteria andOpTypeLessThanOrEqualTo(Byte value) {
            addCriterion("op_type <=", value, "opType");
            return (Criteria) this;
        }

        public Criteria andOpTypeIn(List<Byte> values) {
            addCriterion("op_type in", values, "opType");
            return (Criteria) this;
        }

        public Criteria andOpTypeNotIn(List<Byte> values) {
            addCriterion("op_type not in", values, "opType");
            return (Criteria) this;
        }

        public Criteria andOpTypeBetween(Byte value1, Byte value2) {
            addCriterion("op_type between", value1, value2, "opType");
            return (Criteria) this;
        }

        public Criteria andOpTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("op_type not between", value1, value2, "opType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeIsNull() {
            addCriterion("assets_type is null");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeIsNotNull() {
            addCriterion("assets_type is not null");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeEqualTo(Byte value) {
            addCriterion("assets_type =", value, "assetsType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeNotEqualTo(Byte value) {
            addCriterion("assets_type <>", value, "assetsType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeGreaterThan(Byte value) {
            addCriterion("assets_type >", value, "assetsType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("assets_type >=", value, "assetsType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeLessThan(Byte value) {
            addCriterion("assets_type <", value, "assetsType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeLessThanOrEqualTo(Byte value) {
            addCriterion("assets_type <=", value, "assetsType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeIn(List<Byte> values) {
            addCriterion("assets_type in", values, "assetsType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeNotIn(List<Byte> values) {
            addCriterion("assets_type not in", values, "assetsType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeBetween(Byte value1, Byte value2) {
            addCriterion("assets_type between", value1, value2, "assetsType");
            return (Criteria) this;
        }

        public Criteria andAssetsTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("assets_type not between", value1, value2, "assetsType");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Byte value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Byte value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Byte value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Byte value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Byte value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Byte> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Byte> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Byte value1, Byte value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Byte value1, Byte value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andUseAmountIsNull() {
            addCriterion("use_amount is null");
            return (Criteria) this;
        }

        public Criteria andUseAmountIsNotNull() {
            addCriterion("use_amount is not null");
            return (Criteria) this;
        }

        public Criteria andUseAmountEqualTo(Integer value) {
            addCriterion("use_amount =", value, "useAmount");
            return (Criteria) this;
        }

        public Criteria andUseAmountNotEqualTo(Integer value) {
            addCriterion("use_amount <>", value, "useAmount");
            return (Criteria) this;
        }

        public Criteria andUseAmountGreaterThan(Integer value) {
            addCriterion("use_amount >", value, "useAmount");
            return (Criteria) this;
        }

        public Criteria andUseAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("use_amount >=", value, "useAmount");
            return (Criteria) this;
        }

        public Criteria andUseAmountLessThan(Integer value) {
            addCriterion("use_amount <", value, "useAmount");
            return (Criteria) this;
        }

        public Criteria andUseAmountLessThanOrEqualTo(Integer value) {
            addCriterion("use_amount <=", value, "useAmount");
            return (Criteria) this;
        }

        public Criteria andUseAmountIn(List<Integer> values) {
            addCriterion("use_amount in", values, "useAmount");
            return (Criteria) this;
        }

        public Criteria andUseAmountNotIn(List<Integer> values) {
            addCriterion("use_amount not in", values, "useAmount");
            return (Criteria) this;
        }

        public Criteria andUseAmountBetween(Integer value1, Integer value2) {
            addCriterion("use_amount between", value1, value2, "useAmount");
            return (Criteria) this;
        }

        public Criteria andUseAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("use_amount not between", value1, value2, "useAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountIsNull() {
            addCriterion("today_use_amount is null");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountIsNotNull() {
            addCriterion("today_use_amount is not null");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountEqualTo(Integer value) {
            addCriterion("today_use_amount =", value, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountNotEqualTo(Integer value) {
            addCriterion("today_use_amount <>", value, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountGreaterThan(Integer value) {
            addCriterion("today_use_amount >", value, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("today_use_amount >=", value, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountLessThan(Integer value) {
            addCriterion("today_use_amount <", value, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountLessThanOrEqualTo(Integer value) {
            addCriterion("today_use_amount <=", value, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountIn(List<Integer> values) {
            addCriterion("today_use_amount in", values, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountNotIn(List<Integer> values) {
            addCriterion("today_use_amount not in", values, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountBetween(Integer value1, Integer value2) {
            addCriterion("today_use_amount between", value1, value2, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andTodayUseAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("today_use_amount not between", value1, value2, "todayUseAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountIsNull() {
            addCriterion("first_amount is null");
            return (Criteria) this;
        }

        public Criteria andFirstAmountIsNotNull() {
            addCriterion("first_amount is not null");
            return (Criteria) this;
        }

        public Criteria andFirstAmountEqualTo(Long value) {
            addCriterion("first_amount =", value, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountNotEqualTo(Long value) {
            addCriterion("first_amount <>", value, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountGreaterThan(Long value) {
            addCriterion("first_amount >", value, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("first_amount >=", value, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountLessThan(Long value) {
            addCriterion("first_amount <", value, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountLessThanOrEqualTo(Long value) {
            addCriterion("first_amount <=", value, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountIn(List<Long> values) {
            addCriterion("first_amount in", values, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountNotIn(List<Long> values) {
            addCriterion("first_amount not in", values, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountBetween(Long value1, Long value2) {
            addCriterion("first_amount between", value1, value2, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andFirstAmountNotBetween(Long value1, Long value2) {
            addCriterion("first_amount not between", value1, value2, "firstAmount");
            return (Criteria) this;
        }

        public Criteria andSystemCodeIsNull() {
            addCriterion("system_code is null");
            return (Criteria) this;
        }

        public Criteria andSystemCodeIsNotNull() {
            addCriterion("system_code is not null");
            return (Criteria) this;
        }

        public Criteria andSystemCodeEqualTo(String value) {
            addCriterion("system_code =", value, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeNotEqualTo(String value) {
            addCriterion("system_code <>", value, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeGreaterThan(String value) {
            addCriterion("system_code >", value, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeGreaterThanOrEqualTo(String value) {
            addCriterion("system_code >=", value, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeLessThan(String value) {
            addCriterion("system_code <", value, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeLessThanOrEqualTo(String value) {
            addCriterion("system_code <=", value, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeLike(String value) {
            addCriterion("system_code like", value, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeNotLike(String value) {
            addCriterion("system_code not like", value, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeIn(List<String> values) {
            addCriterion("system_code in", values, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeNotIn(List<String> values) {
            addCriterion("system_code not in", values, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeBetween(String value1, String value2) {
            addCriterion("system_code between", value1, value2, "systemCode");
            return (Criteria) this;
        }

        public Criteria andSystemCodeNotBetween(String value1, String value2) {
            addCriterion("system_code not between", value1, value2, "systemCode");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}